﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Audio;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.GamerServices;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;
using Microsoft.Xna.Framework.Media;

namespace Projeto3D
{
    class Camera3D
    {
        public Matrix projection;
        public Vector3 position, lookAt;

        public Camera3D()
        {
            this.projection = Matrix.CreatePerspectiveFieldOfView(MathHelper.PiOver4, Game1.self.GraphicsDevice.Viewport.AspectRatio, 1f, 50f);

            this.position = new Vector3(1, 25, 0);
            this.lookAt = new Vector3(0, 0, 0);
        }

        public Matrix View
        {
            get
            {
                Matrix view = Matrix.CreateLookAt(this.position, this.lookAt, Vector3.Up);

                return view;
            }
        }
    }
}
